home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / resources / src / remresource.c < prev   
Encoding:
C/C++ Source or Header  |  1996-07-16  |  943 b   |  60 lines

  1. /*
  2.     (C) 1995, 96 AROS - The Amiga Replacement OS
  3.     $Id$
  4.     $Log$
  5.     Desc:
  6.     Lang: english
  7. */
  8. #include "exec_intern.h"
  9. #include <aros/libcall.h>
  10. #include <dos/dos.h>
  11.  
  12. /*****************************************************************************
  13.  
  14.     NAME */
  15.     #include <clib/exec_protos.h>
  16.  
  17.     __AROS_LH1(void, RemResource,
  18.  
  19. /*  SYNOPSIS */
  20.     __AROS_LA(APTR, resource,A1),
  21.  
  22. /*  LOCATION */
  23.     struct ExecBase *, SysBase, 82, Exec)
  24.  
  25. /*  FUNCTION
  26.     Removes a resource from the system resource list.
  27.  
  28.     INPUTS
  29.     resource - Pointer to the resource.
  30.  
  31.     RESULT
  32.  
  33.     NOTES
  34.  
  35.     EXAMPLE
  36.  
  37.     BUGS
  38.  
  39.     SEE ALSO
  40.     AddResource(), OpenResource()
  41.  
  42.     INTERNALS
  43.  
  44.     HISTORY
  45.  
  46. ******************************************************************************/
  47. {
  48.     __AROS_FUNC_INIT
  49.  
  50.     /* Arbitrate for the resource list */
  51.     Forbid();
  52.  
  53.     Remove((struct Node *)resource);
  54.  
  55.     /* All done. */
  56.     Permit();
  57.     __AROS_FUNC_EXIT
  58. } /* RemResource */
  59.  
  60.